package cn.sjxy.doctorms.service.impl;

import cn.sjxy.doctorms.domain.Doctor;
import cn.sjxy.doctorms.mapper.DoctorMapper;
import cn.sjxy.doctorms.service.DoctorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DoctorServiceImpl implements DoctorService {
    @Autowired
    private DoctorMapper doctormapper;

    @Override
    public List<Doctor> findAllDoctors() {
        return doctormapper.findAllDoctors();
    }
    @Override
    public Doctor getDocBySubStep(Integer doctorId) {
        return doctormapper.getDocBySubStep(doctorId);
    }

    @Override
    public void updateDoctor(Doctor doctor) {
        doctormapper.updateDoctor(doctor);
    }

    @Override
    public void deleteDoctor(Integer doctorId) {
        doctormapper.deleteDoctor(doctorId);
    }

    @Override
    public void insertDoctor(Doctor doctor) {
        doctormapper.insertDoctor(doctor);
    }
}
